<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <style>
        .plupload-preview a.btn-trash{
            display: none;
        }
    </style>
    <div class="form-group">
        <label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <p class="form-control-static">{$row.username}</p>
        </div>
    </div>
    <div class="form-group">
        <label for="c-order_id" class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <p class="form-control-static">{$row.order_no}</p>
        </div>
    </div>
    <div class="form-group">
        <label for="c-order_item_id" class="control-label col-xs-12 col-sm-2">{:__('Order_item_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <p class="form-control-static">{$row.goods_name}</p>
        </div>
    </div>
    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <p class="form-control-static">{$typeList[$row['type']]}</p>
        </div>
    </div>

    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <p class="form-control-static">{$row.content}</p>
        </div>
    </div>
    <div class="form-group">
        <label for="c-create_time" class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <p class="form-control-static">{$row.create_time}</p>
        </div>
    </div>
    <div class="form-group">
        <label for="c-images" class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control hidden" size="50" name="row[images]" type="text" value="{$row.images}">
                <div class="input-group-addon no-border no-padding hidden">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images"></ul>
        </div>
    </div>
    
    <div class="form-group">
        <label for="c-amount" class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount]" type="number" value="{$row.amount}">
        </div>
    </div>
    
    <div class="form-group">
        <label for="c-result" class="control-label col-xs-12 col-sm-2">{:__('Result')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="resultList" item="vo"}
                <label for="row[result]-{$key}"><input id="row[result]-{$key}" name="row[result]" type="radio" value="{$key}" {in name="key" value="$row.result"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    
    <div class="form-group">
        <label for="c-reason" class="control-label col-xs-12 col-sm-2">判断说明:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[reason]" id="" cols="30" data-rule="required" class="form-control" rows="5"></textarea>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
